package com.yunpuvip.sachet.biz.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yunpuvip.sachet.biz.entity.Payment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yunpuvip.sachet.biz.model.params.PaymentParam;
import com.yunpuvip.sachet.modular.vo.rest.request.PaymentReqVo;
import com.yunpuvip.sachet.modular.vo.rest.response.PaymentRspVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 支付账单 Mapper 接口
 * </p>
 *
 * @author wushaohong
 * @since 2019-08-10
 */
public interface PaymentMapper extends BaseMapper<Payment> {

    /**
     * 获取缴费订单
     * @param page
     * @param paymentReqVo
     * @return
     */
    Page<PaymentRspVo> getPaymentPageByCondition(Page page, @Param("vo") PaymentReqVo paymentReqVo);

    /**
     * 获取缴费单
     * @param page
     * @param paymentParam
     * @return
     */
    Page<Payment> getPaymentPage(Page page, @Param("parm")PaymentParam paymentParam);
}
